const path = require('path');

/**
 * @description 根目录
 */
const ROOT_PATH = process.cwd();

/**
 * @description 程序目录
 */
const APP_PATH = path.join(ROOT_PATH, 'app');

let config = {
  JSON_LIMIT:"100kb",
  logger : {
    level: 'dev',
  },
  env:'dev',
  template:'default',
  cookieKey:'chanjs-2024-02-02-10:49',
  maxAge:'1d',
  views:[], //模板路径
  database:{
    client: "mysql2",
    host: "localhost",
    port: "3306",
    user: "root",
    password: "123456",
    database: "chanyue",
    charset: "utf8mb4",
  }
}

module.exports = {
  ROOT_PATH,
  APP_PATH, 
  ...config
}